package com.ruoyi.system.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysRescueStationMapper;
import com.ruoyi.system.domain.SysRescueStation;
import com.ruoyi.system.service.ISysRescueStationService;

/**
 * 救助站信息Service业务层处理
 *
 * @author ruoyi
 */
@Service
public class SysRescueStationServiceImpl implements ISysRescueStationService {
    private final SysRescueStationMapper sysRescueStationMapper;

    public SysRescueStationServiceImpl(SysRescueStationMapper sysRescueStationMapper) {
        this.sysRescueStationMapper = sysRescueStationMapper;
    }

    /**
     * 查询救助站信息
     *
     * @param id 救助站信息主键
     * @return 救助站信息
     */
    @Override
    public SysRescueStation selectSysRescueStationById(Long id) {
        return sysRescueStationMapper.selectSysRescueStationById(id);
    }

    /**
     * 查询救助站信息列表
     *
     * @param sysRescueStation 救助站信息
     * @return 救助站信息
     */
    @Override
    public List<SysRescueStation> selectSysRescueStationList(SysRescueStation sysRescueStation) {
        return sysRescueStationMapper.selectSysRescueStationList(sysRescueStation);
    }

    /**
     * 新增救助站信息
     *
     * @param sysRescueStation 救助站信息
     * @return 结果
     */
    @Override
    public int insertSysRescueStation(SysRescueStation sysRescueStation) {
        return sysRescueStationMapper.insertSysRescueStation(sysRescueStation);
    }

    /**
     * 修改救助站信息
     *
     * @param sysRescueStation 救助站信息
     * @return 结果
     */
    @Override
    public int updateSysRescueStation(SysRescueStation sysRescueStation) {
        return sysRescueStationMapper.updateSysRescueStation(sysRescueStation);
    }

    /**
     * 批量删除救助站信息
     *
     * @param ids 需要删除的救助站信息主键
     * @return 结果
     */
    @Override
    public int deleteSysRescueStationByIds(Long[] ids) {
        return sysRescueStationMapper.deleteSysRescueStationByIds(ids);
    }

    /**
     * 删除救助站信息信息
     *
     * @param id 救助站信息主键
     * @return 结果
     */
    @Override
    public int deleteSysRescueStationById(Long id) {
        return sysRescueStationMapper.deleteSysRescueStationById(id);
    }
}